home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1232 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  793 b 

  1. Path: colossus.holonet.net!vdim!rick.crone
  2. From: rick.crone@vdim.com (Rick Crone)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Loading a structure from
  5. Date: Fri, 12 Jan 1996 01:37:55 GMT
  6. Message-ID: <9601120655253816@vdim.com>
  7. Organization: The Virtual Dimension | Jackson, TN USA
  8. Distribution: world
  9. References: <4cfg1d$5n9@vector.wantree.com.au>
  10.  
  11. Yea, hang a loop to get all your records. You didn't descrip the file,
  12. but if its a simple text file with fixed lenght records and a /n at the
  13. end of each record - read a line load an element of your array - loop -
  14. if it's not the end of the file. Be sure you array can hold the data
  15. from the file - error trap the program if you have more records than
  16. array space.
  17.  
  18.                                Good Luck!
  19.                                      Rick
  20.